// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov  Date: 16.03.2004 16:26:34
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name:   HourInterval.java

package com.tizona.system;


// Referenced classes of package com.tizona.system:
//            Hour

public class HourInterval
{

    public HourInterval(Hour hour, Hour hour1)
    {
        start = new Hour(hour);
        stop = new Hour(hour1);
    }

    public HourInterval(int i, int j, int k, int l)
    {
        start = new Hour(i, j);
        stop = new Hour(k, l);
    }

    public int getLengthMin()
    {
        int i = (stop.HH * 60 + stop.MM) - start.HH * 60 - start.MM;
        return i <= 0 ? 1440 + i : i;
    }

    public int getLengthSec()
    {
        int i = (stop.HH * 60 + stop.MM) - start.HH * 60 - start.MM;
        return i <= 0 ? (1440 + i) * 60 : i * 60;
    }

    public int getLengthInMillis()
    {
        int i = (stop.HH * 60 + stop.MM) - start.HH * 60 - start.MM;
        return i <= 0 ? (1440 + i) * 60 * 1000 : i * 60 * 1000;
    }

    public Hour start;
    public Hour stop;
}
